/*
 * inotify-sync - a simple file synchronizer and file system watcher
 * Copyright (C) 2010-2011, inotify-sync developers and inotify-sync contributors
 * Copyright (C) 2010-2011, Cohesion Network Security Studio
 *
 * inotify-sync is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * inotify-sync is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with inotify-sync; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef _PROFILE_H
#define _PROFILE_H

#include <string.h>
#include <sys/inotify.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>

#define MAX_NAME_LEN		128
#define MAX_VALUE_LEN		1024
#define POPT_INIT_COUNT		64

struct popt
{
	char name[MAX_NAME_LEN];
	char value[MAX_VALUE_LEN];
};

struct event_action
{
	uint32_t event;
	const char *name;
	char action[MAX_VALUE_LEN];
};

void profile_init();
void profile_destory();
void get_popt(const char *name, char *value);
void add_popt(const char *name, const char *value);

extern struct event_action event_action_array[12];

#endif
